#ifndef _COIN_H_
#define _COIN_H_

#include "Object.h"

#define COIN_VX	0.1
#define GRAVITY		0.01

class Coin : public Object
{
	float _vy;
	float _accelY;

	float _yOld;

	int _numberCoin;		//so luong coin
	bool isHidden;			//coin an hay hien

public:
	Coin(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID);
	~Coin();

 
	void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);

	OBJECT_TYPE GetTypeObject();
	void ResetRect();
	void ChangeState(int state);
};

#endif